package com.zhuliwei.exception;

import com.zhuliwei.enums.ExceptionEnum;

public class RecognitionException {
        private int layer;               // 异常所在的层
        private ExceptionEnum exception; // 异常类型
        private int beginWeight;         // 开门时的重量
        private int endWeight;           // 关门时的重量

        public RecognitionException(int layer, ExceptionEnum exception, int beginWeight, int endWeight) {
            this.layer = layer;
            this.exception = exception;
            this.beginWeight = beginWeight;
            this.endWeight = endWeight;
        }

        public int getLayer() {
            return layer;
        }

        public ExceptionEnum getException() {
            return exception;
        }

        public int getBeginWeight() {
            return beginWeight;
        }

        public int getEndWeight() {
            return endWeight;
        }
    }